package cate.game.play.proce.result;


import cate.common.table.d.GDPlay;
import cate.game.play.buff.Buff;
import cate.game.play.vo.BuffVO;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

@NoteClass("buff添加结果")
public class BuffAddResult extends ActionResult<BuffAddResult> {

    @NoteField("buff")
    public BuffVO buff;

    public BuffAddResult() {
        this.type = GDPlay.ResultType.BUFF_ADD;
    }

    public BuffAddResult buffSet(Buff buff) {
        this.pidSet(buff.owner);
        this.buff = new BuffVO();
        this.buff.readFrom(buff);
        return this;
    }

    @Override
    public String toString() {
        return super.toString() + " buff=" + buff;
    }


}
